package com.housediyadmin.command.treeCommand
{
	import com.housediyadmin.events.treeEvents.AddGoodsLevelEvent;
	import com.housediyadmin.service.GoodsRemoteObjectService;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/18
	 */	
	public class AddGoodsLevelCommand extends Command
	{
		[Inject]
		public var service:GoodsRemoteObjectService;
		
		[Inject]
		public var event:AddGoodsLevelEvent;
		
		override public function execute():void
		{
			//加到服务器端
			service.addGoodsLevel(event.typeName, event.typeParentId, event.typeLevel);
		}
	}
}